<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>北部湾新材料</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.0.0/css/bootstrap.min.css">
    <!-- Fonts -->
    <link href="/home.ico" rel="shortcut icon">
    <!-- Styles -->
    <style>

        html, body {
            background-color: #f8f9fb;
            background-image: url('{{asset('images/bg2.png')}}');
            background-size:100% 100%;
            -moz-background-size:100% 100%;
            height: 100vh;
            margin: 0;
            position: relative;
        }
        .content{
            position: absolute;
            top: 20%;
            width: 80%;
            height: 50%;
            left:50%;
            margin-left: -40%;
            border: 1px solid white;
            border-radius: 5px;
            background: rgba(0,0,0,.4);
            display: flex;
        }
        .content .left{
            width: 60%;
            height: 100%;
            color: white;
            font-weight: 400;
            padding: 30px;
        }
         .company{
            font-weight: 600;
            margin-bottom: 30px;
        }
        .content .right{
            background-color: rgba(0,0,0,.2);
            color: white;
            width: 40%;
        }
    </style>
</head>
<body>
<div class="content">
    <div class="left">
        <div class="company">
            北部湾新材料
        </div>
        <div class="system">
            宿舍管理系统
        </div>
    </div>
    <div class="right">
        <div class="form-content">
            <form class="form-horizontal" method="POST" action="{{ route('login') }}">
                {{ csrf_field() }}
                <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                    <label for="email" class="col-md-4 control-label">邮箱</label>
                    <div class="col-md-12">
                        <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus>
                        @if ($errors->has('email'))
                            <span class="help-block">
                                        <strong>{{ $errors->first('email') }}</strong>
                             </span>
                        @endif
                    </div>
                </div>

                <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                    <label for="password" class="col-md-4 control-label">密码</label>

                    <div class="col-md-12">
                        <input id="password" type="password" class="form-control" name="password" required>

                        @if ($errors->has('password'))
                            <span class="help-block">
                                        <strong>{{ $errors->first('password') }}</strong>
                                    </span>
                        @endif
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-6 col-md-offset-4">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> 记住我
                            </label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-8 col-md-offset-4">
                        <button type="submit" class="btn btn-primary">
                            登录
                        </button>
                        {{--<a class="btn btn-link" href="{{ route('password.request') }}">--}}
                        {{--忘记密码?--}}
                        {{--</a>--}}
                    </div>
                </div>
            </form>
        </div>
        <div class="panel-footer">
            @if($errors)
                <div class="form-group has-error">
                            <span class="help-block">{{$errors->first()}}
                            </span>
                </div>
            @endif
        </div>
    </div>
</div>
</body>
</html>
